07. Lab II: Build a Dog REST API (Annotations I)

Lab II: Build a Dog REST API

Let's build more onto our Dog REST API we set up earlier, by adding an entity and a controller.

Annotations Part I

  • Step 1: Create an entity called Dog. The dog should have three attributes:
    • Name
    • Breed
    • Origin
  • Step 2: Create a web controller using @RestController.
    • You just need to create the structure of the controller for now. You'll add more to it once we discuss services next.